<html>
<body>

<?
include_once("config.php");
include_once("functions.php");
session_start();
$teamID = $_GET['id'];
if (is_numeric($teamID))
{
	addUserToTeam($teamID, $_SESSION['user']->id);
	$_SESSION['team'] = getTeamByID($teamID);
	header("location:setcookie.php");
}
?>

</body>
</html>